package com.ih.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;

import java.util.Calendar;
import java.util.Date;


/**
 * @ClassName Order
 * @Description
 * @Author xiaozhang
 * @date 2023-05-06
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("tb_order")
public class Order {
    @Id
    private int id;
    private String orderNumber;
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
//    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;
    private Worker worker;
    private Customer customer;
    private int sendWaterCount;
    private Double amount;
    private String startTime_1;
    private String endTime_1;
}
